#当用户选择商品类别后跳转到商品细分界面
import tkinter as tk
from parameter import *
from PIL import ImageTk, Image
from object import *

class visitorSelect():
    def __init__(self, mytype, master=None, name=None):
        self.mytype = mytype
        self.window = master
        self.name = name
        self.choose()
        
    def choose(self):
        if self.mytype == my_air_conditioner:
            air_cond(self.window, self.name) 
        elif self.mytype == my_washing_machine:
            washMachine(self.window, self.name)
        elif self.mytype == my_television:
            teleVision(self.window, self.name)
        elif self.mytype == my_heater:
            heater(self.window, self.name)
        elif self.mytype == my_computer:
            computer(self.window, self.name)
        elif self.mytype == my_phone:
            phone(self.window, self.name)
        elif self.mytype == my_camera:
            camera(self.window, self.name)
        elif self.mytype == my_shoes:
            shoes(self.window, self.name)
        elif self.mytype == my_sweater:
            sweater(self.window, self.name)
        elif self.mytype == my_loose_coat:
            looseCoat(self.window, self.name)
        else:
            trousers(self.window, self.name)    
